﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lin_cms_dotnet_core.Models
{
    [Table("lin_permission")]
    public partial class LinPermission
    {
        [Key]
        [Column("id", TypeName = "int(10) unsigned")]
        public uint Id { get; set; }
        [Required]
        [Column("name")]
        [StringLength(60)]
        public string Name { get; set; }
        [Required]
        [Column("module")]
        [StringLength(50)]
        public string Module { get; set; }
        [Column("mount", TypeName = "tinyint(1)")]
        public sbyte Mount { get; set; }
        [Column("create_time", TypeName = "datetime(3)")]
        public DateTime CreateTime { get; set; }
        [Column("update_time", TypeName = "datetime(3)")]
        public DateTime UpdateTime { get; set; }
        [Column("delete_time", TypeName = "datetime(3)")]
        public DateTime? DeleteTime { get; set; }
    }
}
